package com.acwer.domain.sys;

import java.util.Date;

import com.acwer.framework.data.ColumnExplain;
//import com.acwer.framework.data.ColumnExplain;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain=true)
@TableName(value = "sys_role")//指定表名
public class SysRole {
	@ColumnExplain(value="主键",isEdit=false)
	@TableId(value="id",type=IdType.AUTO)
	private Integer id;
	
	@ColumnExplain(value="父id",ls=false,isEdit=false)
	private Integer pid;
	
	@ColumnExplain(value="角色名称",required=true)
	private String name;
	
	@ColumnExplain("描述")
	private String description;
	
	@ColumnExplain("排序")
	private String sort;
	
	@ColumnExplain(value="锁",isEdit=false)
	private String version;
	
	@ColumnExplain(value="创建时间",isEdit=false)
	 @JSONField(format="yyyy-MM-dd HH:mm:ss")
	 @TableField(value = "create_time",exist = true)
	private Date createTime;
	 
	@ColumnExplain(value="创建人",isEdit=false)
	 @TableField(value = "create_user",exist = true)
	 private String createUser;
	@ColumnExplain(value="修改时间",isEdit=false)
	 @JSONField(format="yyyy-MM-dd HH:mm:ss")
	 @TableField(value = "update_time",exist = true)
		private Date updateTime;
	 
	@ColumnExplain(value="修改人",isEdit=false)
	 @TableField(value = "update_user",exist = true)
	 private String updateUser;
}
